﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Contract.Business.Entity;
using Contract.Business.Filter;
using Contract.Data.Manager;
using Generic.Business.Manager;

namespace Contract.Business.Manager
{
    public class BMFuncionario : BMGeneric<BEFuncionario, FEFuncionario, DMFuncionario>
    {
        public bool Logar(string usuario, string senha)
        {
            try
            {
                return this.DataManager.Logar(usuario, senha);
            }
            catch (Exception)
            {
                throw;
            }
        }
        
        public void AlterarSenha(string usuario, string senhaAntiga, string senhaNova)
        {
            try
            {
                this.DataManager.AlterarSenha(usuario, senhaAntiga, senhaNova);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
